import axios from "@/utils/request"

export const getListBreak = (data) => {
    return axios({
        url: "/breakTheRule",
        method: "get",
        data,
    })
}
export const addBreakTheRule=(data)=>{
    return axios({
        url: "/breakTheRule",
        method: "post",
        data,
    })
}
export const updateBreakTheRule=(data)=>{
    return axios({
        url: "/breakTheRule",
        method: "put",
        data,
    })
}
export const deleteBreakTheRule=(data)=>{
    return axios({
        url: `/breakTheRule/${data}`,
        method: "delete",
    })
}
export const batchDeleteBreakTheRule=(data)=>{
    return axios({
        url: "/breakTheRule/batchDelete",
        method: "delete",
        data
    })
}
